package cn.zn.oss.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 附件信息表
 * </p>
 *
 * @author zn-admin
 * @since 2021-06-16
 */
@TableName("SYS_FILE_INFO")
public class FileInfo extends Model<FileInfo> {

    /**
     * id
     */
    @TableField("ID")
    private String id;

    /**
     * 名称
     */
    @TableField("FILE_NAME")
    private String fileName;

    /**
     * 路径
     */
    @TableField("FILE_PATH")
    private String filePath;

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "FileInfo{" +
                "id=" + id +
                ", fileName=" + fileName +
                ", filePath=" + filePath +
                "}";
    }
}
